package com.example.springbootactiviemq.receiver;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * @author ljw
 * @description
 * @date 2022/9/9 11:55
 */
@Service
public class Receiver1 {

    @JmsListener(destination = "my-destination")
    public void receiveMessage(String message) {
        System.out.println("Receiver1接收到："+message);
    }
}
